﻿{% extends "layout/base.html" %}
{% block content %}

<h1>Modifier mes informations</h1>

<form enctype="multipart/form-data" action={{ form_action }} method="post" id="profile_form">
	<!--{{ user_form.as_p }}
	{{ profile_form.as_p}}-->
	
	<h2>Mes informations</h2>
	<div class="fieldWrapper"> 
		<p><label>{{ user_form.first_name.label }} :</label> {{ user_form.first_name }}
		{% for error in user_form.first_name.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
	</div>
	<div class="fieldWrapper"> 
		<p><label>{{ user_form.last_name.label }} :</label> {{ user_form.last_name }}
		{% for error in user_form.last_name.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
	</div>
	<div class="fieldWrapper"> 
		<p><label>Email :</label> {{ user_form.email }} 
		{% for error in user_form.email.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>		
	</div>
	<div class="fieldWrapper"> 
		<p class="checkbox_form">{{ profile_form.is_email_hidden }} {{ profile_form.is_email_hidden.label }}</p>		
	</div>
	<div class="fieldWrapper"> 
		<p><label>{{ profile_form.cellphone.label }} :</label> {{ profile_form.cellphone }}
		{% for error in profile_form.cellphone.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
	</div>
	<div class="fieldWrapper"> 
		<p class="checkbox_form">{{ profile_form.is_cellphone_hidden }} {{ profile_form.is_cellphone_hidden.label }}</p>		
	</div>
	<div class="fieldWrapper"> 
		<p><label>{{ profile_form.sex.label }} :</label> {{ profile_form.sex }}
		{% for error in profile_form.sex.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
	</div>
	<div class="fieldWrapper"> 
		<p><label>{{ profile_form.age.label }} :</label> {{ profile_form.age }}
		{% for error in profile_form.age.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
	</div>
	<div class="fieldWrapper"> 
		<p><label>{{ profile_form.url_pic.label }} :</label> {{ profile_form.url_pic }}
		{% for error in profile_form.url_pic.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
	</div>
	<!---->
	<p><label>Supprimer ma photo :</label><select name="delete_picture">
	<option value="no">Non</option>
	<option value="yes">Oui</option>
	</select></p>
	
	
	<h2>Mes préférences</h2>
	<div class="fieldWrapper"> 
		<p><label>{{ profile_form.is_smoker.label }} :</label> {{ profile_form.is_smoker }}
		{% for error in profile_form.is_smoker.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
	</div>
	<div class="fieldWrapper"> 
		<p><label>{{ profile_form.is_talker.label }} :</label> {{ profile_form.is_talker }}
		{% for error in profile_form.is_talker.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
	</div>
	<div class="fieldWrapper"> 
		<p><label>{{ profile_form.type_music.label }} :</label> {{ profile_form.type_music }}
		{% for error in profile_form.type_music.errors %}<span class="error">{{ error }}</span>{% endfor %}</p>	
		
	</div>
	
	<p class="submit"><input class="submit_search" type="submit" value="Enregistrer" /></p>
</form>


{% endblock content %}
